//layui- layer 
//显示一个弹窗
function show(message) {
    layui.use('layer', function() {
        var layer = layui.layer;

        layer.msg(message);
    });
}
//-------------------------------------------------------------
//sleep 
function sleep(time) {
    return new Promise((resolve) => setTimeout(resolve, time));
}

// 用法sleep(1000).then(() => {
// 这里写sleep之后需要去做的事情
//     history.go(-1)
//     location.reload();
// })

//-----------------------------------------------------------
//axios 封装
const instance = axios.create({
    baseURL: 'http://47.119.134.71:8080/',
    headers: {
        'Content-Type': 'text/plain;charset=UTF-8'
    }
})